package cn.befory.pojo;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 库存记录
 * @author befory
 * @since 2019-10-7
 */
public class RepertoryRecord implements Serializable {
    private static final long serialVersionUID = -3794164099671019837L;
    private Long id;
    /**
     * 产品id
     */
    private Long productId;
    /**
     * 创建时间
     */
    private Long createTime;
    /**
     * 出入库数量
     */
    private BigDecimal num;
    /**
     * 1入库2出库
     */
    private Integer type;

    public Long getId() {
        return id;
    }

    public RepertoryRecord setId(Long id) {
        this.id = id;
        return this;
    }

    public Long getProductId() {
        return productId;
    }

    public RepertoryRecord setProductId(Long productId) {
        this.productId = productId;
        return this;
    }

    public Long getCreateTime() {
        return createTime;
    }

    public RepertoryRecord setCreateTime(Long createTime) {
        this.createTime = createTime;
        return this;
    }

    public BigDecimal getNum() {
        return num;
    }

    public RepertoryRecord setNum(BigDecimal num) {
        this.num = num;
        return this;
    }

    public Integer getType() {
        return type;
    }

    public RepertoryRecord setType(Integer type) {
        this.type = type;
        return this;
    }
}
